<template>
  <div class="content">
    <!-- 左侧边栏 -->
    <Nav/>
    <!-- 右侧内容 -->
    <div class="main">
      <router-view v-slot="{ Component }">
        <transition>
            <component :is="Component" />
        </transition>
      </router-view>
      <!-- <router-view></router-view> -->
    </div>

  </div>
</template>

<script setup>
import Nav from '@/views/Nav.vue'

</script>

<style lang="less" scoped>
.content {
  width: 100%;
  // height: 100%;
  // overflow: 
  .main{
    margin-left: 10px;
    width: 100%;
    height: 650px;
    overflow: auto;
  }
}

/* 从哪里入场 */
.v-enter-from {
  opacity: 0;
}
/* 移动的过程的特效 */
.v-enter-active,.v-leave-active {
  transition: all 0.2s ease-in;
}

/* 去到哪里 */
.v-leave-to {
  opacity: 0;
}
</style>
